package com.spring.security.core.validate;

import org.springframework.web.bind.ServletRequestBindingException;
import org.springframework.web.context.request.ServletWebRequest;

/**
 * 校验码生成器
 *
 * @author seabed_moon
 */
public interface ValidateCodeGenerator {

    /**
     * 验证码生成
     *
     * @param request
     * @return
     */
    ValidateCode generate(ServletWebRequest request) throws ServletRequestBindingException;
}
